package cn.dengta.webapp.user.vo;

import java.util.List;
import java.util.Map;

import cn.dengta.common.model.APIResponse.Field;
import cn.dengta.context.model.Option;
import cn.dengta.webapp.base.vo.AbstractVO;
import cn.dengta.webapp.user.model.InviteLevel;
import lombok.*;

@Getter
@Setter
public class UserIntimacyVO extends AbstractVO<Void> {

	@Field(name = "用户")
	Map<String, Object> user;
	@Field(name = "用户")
	Map<String, Object> toUser;
	@Field(name = "亲密度规则")
	List<RuleVO> rules;
	@Field(name = "亲密度")
	Integer intimacy;
	@Field(name = "亲密度升级配置价格弹窗")
	Boolean customTip;
	@Field(name = "亲密度等级")
	Integer level;
	/** 最大等级 */
	Integer tailLevel;
	/** 下一级相差数据 */
	Option<String> nextDiff;

	@Getter
	@Setter
	public static class RuleVO {

		private String value;
		private String label;
		private Boolean curr;
		private Integer level;
		private Integer intimacy;
		private Map<String, Object> ext;

		public RuleVO(String value, String label, Boolean curr, Integer level, Integer intimacy) {
			this.value = value;
			this.label = label;
			this.curr = curr;
			this.level = level;
			this.intimacy = intimacy;
		}

	}

}
